package com.mashibing.dp.builder;

public class Person {
    int id;
    String name;
    int age;
    double weight;
    double height;

    private Person() {}

    public static class PersonBuilder {
        Person p = new Person();
        public PersonBuilder basicInfo(int id, String name, int age) {
            p.id = id;
            p.name = name;
            p.age = age;
            return this;
        }
        public PersonBuilder appearancen (double weight,double height) {
            p.weight = weight;
            p.height = height;
            return this;
        }
        public Person build() {
            return p;
        }
    }

}